<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class LeanCloud\Query</title>

	<link rel="stylesheet" href="resources/style.css?c2f33731c1948fbed7c333554678bfa68d4817da">

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
				<li class="active">
					<a href="namespace-LeanCloud.html">
						LeanCloud<span></span>
					</a>

						<ul>
				<li>
					<a href="namespace-LeanCloud.Engine.html">
						Engine					</a>

						</li>
				<li>
					<a href="namespace-LeanCloud.Operation.html">
						Operation					</a>

						</li>
				<li>
					<a href="namespace-LeanCloud.Storage.html">
						Storage					</a>

						</li>
				<li>
					<a href="namespace-LeanCloud.Uploader.html">
						Uploader					</a>

						</li>
							</ul></li>
			</ul>
		</div>

		<hr>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-LeanCloud.ACL.html">ACL</a></li>
				<li><a href="class-LeanCloud.Bytes.html">Bytes</a></li>
				<li><a href="class-LeanCloud.Client.html">Client</a></li>
				<li><a href="class-LeanCloud.File.html">File</a></li>
				<li><a href="class-LeanCloud.GeoPoint.html">GeoPoint</a></li>
				<li><a href="class-LeanCloud.MIMEType.html">MIMEType</a></li>
				<li><a href="class-LeanCloud.Object.html">Object</a></li>
				<li><a href="class-LeanCloud.Push.html">Push</a></li>
				<li class="active"><a href="class-LeanCloud.Query.html">Query</a></li>
				<li><a href="class-LeanCloud.Relation.html">Relation</a></li>
				<li><a href="class-LeanCloud.Role.html">Role</a></li>
				<li><a href="class-LeanCloud.SaveOption.html">SaveOption</a></li>
				<li><a href="class-LeanCloud.SMS.html">SMS</a></li>
				<li><a href="class-LeanCloud.User.html">User</a></li>
			</ul>



			<h3>Exceptions</h3>
			<ul>
				<li><a href="class-LeanCloud.BatchRequestError.html">BatchRequestError</a></li>
				<li><a href="class-LeanCloud.CloudException.html">CloudException</a></li>
			</ul>


		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="">
		<input type="hidden" name="ie" value="UTF-8">
		<input type="text" name="q" class="text" placeholder="Search">
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="namespace-LeanCloud.html" title="Summary of LeanCloud"><span>Namespace</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Query</h1>


	<div class="description">
	<p>Query representation for finding objects on LeanCloud</p>
	</div>









	<div class="info">
		
		
		<b>Namespace:</b> <a href="namespace-LeanCloud.html">LeanCloud</a><br>
		

			<b>Located at</b> <a href="source-class-LeanCloud.Query.html#7-794" title="Go to source code">LeanCloud/Query.php</a>
		<br>
	</div>



	<table class="summary methods" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 

			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-LeanCloud.Query.html#60-80" title="Go to source code">__construct</a>( <span>string <var>$queryClass</var></span> )</code>

		<div class="description short">
			<p>Initilize query</p>
		</div>

		<div class="description detailed hidden">
			<p>Initilize query</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$queryClass</var></dt>
					<dd>The class to operate on</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	<tr data-order="getClassName" id="_getClassName">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getClassName">#</a>
		<code><a href="source-class-LeanCloud.Query.html#82-89" title="Go to source code">getClassName</a>( )</code>

		<div class="description short">
			<p>Get className of the query</p>
		</div>

		<div class="description detailed hidden">
			<p>Get className of the query</p>



				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="equalTo" id="_equalTo">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_equalTo">#</a>
		<code><a href="source-class-LeanCloud.Query.html#102-117" title="Go to source code">equalTo</a>( <span>string <var>$key</var></span>, <span>mixed <var>$val</var></span> )</code>

		<div class="description short">
			<p>Field equals to a value</p>
		</div>

		<div class="description detailed hidden">
			<p>Field equals to a value</p>

<p>Equal-to condition is the strongest constraint overall, it has
higher precedence than all other conditions. All prior
conditions set on the field will be discarded and of no effect
when adding an equal-to condition.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="notEqualTo" id="_notEqualTo">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_notEqualTo">#</a>
		<code><a href="source-class-LeanCloud.Query.html#119-129" title="Go to source code">notEqualTo</a>( <span>string <var>$key</var></span>, <span>mixed <var>$val</var></span> )</code>

		<div class="description short">
			<p>Field does not equal to a value</p>
		</div>

		<div class="description detailed hidden">
			<p>Field does not equal to a value</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="lessThan" id="_lessThan">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_lessThan">#</a>
		<code><a href="source-class-LeanCloud.Query.html#131-141" title="Go to source code">lessThan</a>( <span>string <var>$key</var></span>, <span>mixed <var>$val</var></span> )</code>

		<div class="description short">
			<p>Field less than a value</p>
		</div>

		<div class="description detailed hidden">
			<p>Field less than a value</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="lessThanOrEqualTo" id="_lessThanOrEqualTo">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_lessThanOrEqualTo">#</a>
		<code><a href="source-class-LeanCloud.Query.html#143-153" title="Go to source code">lessThanOrEqualTo</a>( <span>string <var>$key</var></span>, <span>mixed <var>$val</var></span> )</code>

		<div class="description short">
			<p>Field less than or equal to a value</p>
		</div>

		<div class="description detailed hidden">
			<p>Field less than or equal to a value</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="greaterThan" id="_greaterThan">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_greaterThan">#</a>
		<code><a href="source-class-LeanCloud.Query.html#155-165" title="Go to source code">greaterThan</a>( <span>string <var>$key</var></span>, <span>mixed <var>$val</var></span> )</code>

		<div class="description short">
			<p>Field greater than a value</p>
		</div>

		<div class="description detailed hidden">
			<p>Field greater than a value</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="greaterThanOrEqualTo" id="_greaterThanOrEqualTo">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_greaterThanOrEqualTo">#</a>
		<code><a href="source-class-LeanCloud.Query.html#167-177" title="Go to source code">greaterThanOrEqualTo</a>( <span>string <var>$key</var></span>, <span>mixed <var>$val</var></span> )</code>

		<div class="description short">
			<p>Field greater than or equal to a vaule</p>
		</div>

		<div class="description detailed hidden">
			<p>Field greater than or equal to a vaule</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="containedIn" id="_containedIn">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_containedIn">#</a>
		<code><a href="source-class-LeanCloud.Query.html#179-189" title="Go to source code">containedIn</a>( <span>string <var>$key</var></span>, <span>array <var>$vals</var></span> )</code>

		<div class="description short">
			<p>Field value is contained in an array</p>
		</div>

		<div class="description detailed hidden">
			<p>Field value is contained in an array</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$vals</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="notContainedIn" id="_notContainedIn">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_notContainedIn">#</a>
		<code><a href="source-class-LeanCloud.Query.html#191-201" title="Go to source code">notContainedIn</a>( <span>string <var>$key</var></span>, <span>array <var>$vals</var></span> )</code>

		<div class="description short">
			<p>Field value is not contained in an array</p>
		</div>

		<div class="description detailed hidden">
			<p>Field value is not contained in an array</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$vals</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="containsAll" id="_containsAll">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_containsAll">#</a>
		<code><a href="source-class-LeanCloud.Query.html#203-213" title="Go to source code">containsAll</a>( <span>string <var>$key</var></span>, <span>array <var>$vals</var></span> )</code>

		<div class="description short">
			<p>Field contains all values from an array</p>
		</div>

		<div class="description detailed hidden">
			<p>Field contains all values from an array</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$vals</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="sizeEqualTo" id="_sizeEqualTo">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_sizeEqualTo">#</a>
		<code><a href="source-class-LeanCloud.Query.html#215-225" title="Go to source code">sizeEqualTo</a>( <span>string <var>$key</var></span>, <span>integer <var>$val</var></span> )</code>

		<div class="description short">
			<p>Array field size equal to val</p>
		</div>

		<div class="description detailed hidden">
			<p>Array field size equal to val</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="exists" id="_exists">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_exists">#</a>
		<code><a href="source-class-LeanCloud.Query.html#227-236" title="Go to source code">exists</a>( <span>string <var>$key</var></span> )</code>

		<div class="description short">
			<p>Field exists</p>
		</div>

		<div class="description detailed hidden">
			<p>Field exists</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="notExists" id="_notExists">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_notExists">#</a>
		<code><a href="source-class-LeanCloud.Query.html#238-247" title="Go to source code">notExists</a>( <span>string <var>$key</var></span> )</code>

		<div class="description short">
			<p>Field not exists</p>
		</div>

		<div class="description detailed hidden">
			<p>Field not exists</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="contains" id="_contains">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_contains">#</a>
		<code><a href="source-class-LeanCloud.Query.html#251-264" title="Go to source code">contains</a>( <span>string <var>$key</var></span>, <span>string <var>$val</var></span> )</code>

		<div class="description short">
			<p>String field contains a (string) value</p>
		</div>

		<div class="description detailed hidden">
			<p>String field contains a (string) value</p>

<p>It performs regex search on string fields, thus might be slow
for large datasets.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd>The substring to find</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="startsWith" id="_startsWith">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_startsWith">#</a>
		<code><a href="source-class-LeanCloud.Query.html#266-279" title="Go to source code">startsWith</a>( <span>string <var>$key</var></span>, <span>string <var>$val</var></span> )</code>

		<div class="description short">
			<p>String field starts with a (string) value</p>
		</div>

		<div class="description detailed hidden">
			<p>String field starts with a (string) value</p>

<p>It performs regex search on string fields, thus might be slow
for large datasets.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd>The start string</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="endsWith" id="_endsWith">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_endsWith">#</a>
		<code><a href="source-class-LeanCloud.Query.html#281-294" title="Go to source code">endsWith</a>( <span>string <var>$key</var></span>, <span>string <var>$val</var></span> )</code>

		<div class="description short">
			<p>String field ends with a (string) value</p>
		</div>

		<div class="description detailed hidden">
			<p>String field ends with a (string) value</p>

<p>It performs regex search on string fields, thus might be slow
for large datasets.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd>The end string</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="matches" id="_matches">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_matches">#</a>
		<code><a href="source-class-LeanCloud.Query.html#296-316" title="Go to source code">matches</a>( <span>string <var>$key</var></span>, <span>string <var>$regex</var></span>, <span>string <var>$modifiers</var> = <span class="php-quote">&quot;&quot;</span></span> )</code>

		<div class="description short">
			<p>String field matches a regular expression</p>
		</div>

		<div class="description detailed hidden">
			<p>String field matches a regular expression</p>

<p>The regex string should not be enclosed with <code>/</code>, and modifiers
must be provided via <code>$modifiers</code> argument.</p>

<p>It performs regex search on string fields, thus might be slow
for large datasets.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$regex</var></dt>
					<dd>The pattern string</dd>
					<dt><var>$modifiers</var></dt>
					<dd>(optional) Regexp modifiers: "i", "m" etc.</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="matchesInQuery" id="_matchesInQuery">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_matchesInQuery">#</a>
		<code><a href="source-class-LeanCloud.Query.html#322-335" title="Go to source code">matchesInQuery</a>( <span>string <var>$key</var></span>, <span><code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code> <var>$query</var></span> )</code>

		<div class="description short">
			<p>Matches result objects returned from a sub-query</p>
		</div>

		<div class="description detailed hidden">
			<p>Matches result objects returned from a sub-query</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$query</var></dt>
					<dd>The sub-query</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="notMatchInQuery" id="_notMatchInQuery">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_notMatchInQuery">#</a>
		<code><a href="source-class-LeanCloud.Query.html#337-350" title="Go to source code">notMatchInQuery</a>( <span>string <var>$key</var></span>, <span><code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code> <var>$query</var></span> )</code>

		<div class="description short">
			<p>Not-match result objects returned from a sub-query</p>
		</div>

		<div class="description detailed hidden">
			<p>Not-match result objects returned from a sub-query</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$query</var></dt>
					<dd>The sub-query</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="matchesFieldInQuery" id="_matchesFieldInQuery">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_matchesFieldInQuery">#</a>
		<code><a href="source-class-LeanCloud.Query.html#352-369" title="Go to source code">matchesFieldInQuery</a>( <span>string <var>$key</var></span>, <span>string <var>$queryKey</var></span>, <span><code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code> <var>$query</var></span> )</code>

		<div class="description short">
			<p>Matches values of specified field from a sub-query</p>
		</div>

		<div class="description detailed hidden">
			<p>Matches values of specified field from a sub-query</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$queryKey</var></dt>
					<dd>Target field key in sub-query</dd>
					<dt><var>$query</var></dt>
					<dd>The sub-query</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="notMatchFieldInQuery" id="_notMatchFieldInQuery">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_notMatchFieldInQuery">#</a>
		<code><a href="source-class-LeanCloud.Query.html#371-388" title="Go to source code">notMatchFieldInQuery</a>( <span>string <var>$key</var></span>, <span>string <var>$queryKey</var></span>, <span><code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code> <var>$query</var></span> )</code>

		<div class="description short">
			<p>Not-match values of specified field from a sub-query</p>
		</div>

		<div class="description detailed hidden">
			<p>Not-match values of specified field from a sub-query</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$queryKey</var></dt>
					<dd>Target field key in sub-query</dd>
					<dt><var>$query</var></dt>
					<dd>The sub-query</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="relatedTo" id="_relatedTo">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_relatedTo">#</a>
		<code><a href="source-class-LeanCloud.Query.html#390-403" title="Go to source code">relatedTo</a>( <span>string <var>$key</var></span>, <span><code><a href="class-LeanCloud.Object.html">LeanCloud\Object</a></code> <var>$obj</var></span> )</code>

		<div class="description short">
			<p>Relation field related to an object</p>
		</div>

		<div class="description detailed hidden">
			<p>Relation field related to an object</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd>A relation field key</dd>
					<dt><var>$obj</var></dt>
					<dd>Target object to relate</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="near" id="_near">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_near">#</a>
		<code><a href="source-class-LeanCloud.Query.html#409-419" title="Go to source code">near</a>( <span>string <var>$key</var></span>, <span><code><a href="class-LeanCloud.GeoPoint.html">LeanCloud\GeoPoint</a></code> <var>$point</var></span> )</code>

		<div class="description short">
			<p>Find objects near a geo point</p>
		</div>

		<div class="description detailed hidden">
			<p>Find objects near a geo point</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd>Field key</dd>
					<dt><var>$point</var></dt>
					<dd>Center geo point</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="withinRadians" id="_withinRadians">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_withinRadians">#</a>
		<code><a href="source-class-LeanCloud.Query.html#421-433" title="Go to source code">withinRadians</a>( <span>string <var>$key</var></span>, <span><code><a href="class-LeanCloud.GeoPoint.html">LeanCloud\GeoPoint</a></code> <var>$point</var></span>, <span>number <var>$distance</var></span> )</code>

		<div class="description short">
			<p>Find objects within a sphere of point, in radians</p>
		</div>

		<div class="description detailed hidden">
			<p>Find objects within a sphere of point, in radians</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd>Field key</dd>
					<dt><var>$point</var></dt>
					<dd>Center geo point</dd>
					<dt><var>$distance</var></dt>
					<dd>Distance in radians</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="withinKilometers" id="_withinKilometers">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_withinKilometers">#</a>
		<code><a href="source-class-LeanCloud.Query.html#435-447" title="Go to source code">withinKilometers</a>( <span>string <var>$key</var></span>, <span><code><a href="class-LeanCloud.GeoPoint.html">LeanCloud\GeoPoint</a></code> <var>$point</var></span>, <span>number <var>$distance</var></span> )</code>

		<div class="description short">
			<p>Find objects within a sphere of point, in kilometers</p>
		</div>

		<div class="description detailed hidden">
			<p>Find objects within a sphere of point, in kilometers</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd>Field key</dd>
					<dt><var>$point</var></dt>
					<dd>Center geo point</dd>
					<dt><var>$distance</var></dt>
					<dd>Distance in kilometers</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="withinMiles" id="_withinMiles">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_withinMiles">#</a>
		<code><a href="source-class-LeanCloud.Query.html#449-461" title="Go to source code">withinMiles</a>( <span>string <var>$key</var></span>, <span><code><a href="class-LeanCloud.GeoPoint.html">LeanCloud\GeoPoint</a></code> <var>$point</var></span>, <span>number <var>$distance</var></span> )</code>

		<div class="description short">
			<p>Find objects within a sphere of point, in miles</p>
		</div>

		<div class="description detailed hidden">
			<p>Find objects within a sphere of point, in miles</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd>Field key</dd>
					<dt><var>$point</var></dt>
					<dd>Center geo point</dd>
					<dt><var>$distance</var></dt>
					<dd>Distance in miles</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="withinBox" id="_withinBox">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_withinBox">#</a>
		<code><a href="source-class-LeanCloud.Query.html#463-476" title="Go to source code">withinBox</a>( <span>string <var>$key</var></span>, <span><code><a href="class-LeanCloud.GeoPoint.html">LeanCloud\GeoPoint</a></code> <var>$southwest</var></span>, <span><code><a href="class-LeanCloud.GeoPoint.html">LeanCloud\GeoPoint</a></code> <var>$northeast</var></span> )</code>

		<div class="description short">
			<p>Find objects within a rectangle</p>
		</div>

		<div class="description detailed hidden">
			<p>Find objects within a rectangle</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd>Field key</dd>
					<dt><var>$southwest</var></dt>
					<dd>Geo point of southwest corner</dd>
					<dt><var>$northeast</var></dt>
					<dd>Geo point of northeast corner</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="select" id="_select">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_select">#</a>
		<code><a href="source-class-LeanCloud.Query.html#480-494" title="Go to source code">select</a>( <span>string|array <var>$keys</var></span> )</code>

		<div class="description short">
			<p>Specify fields to include in query result</p>
		</div>

		<div class="description detailed hidden">
			<p>Specify fields to include in query result</p>

<p>It accepts either one array of keys, or variable number of keys.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$keys</var></dt>
					<dd>string Field keys</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="_include" id="__include">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__include">#</a>
		<code><a href="source-class-LeanCloud.Query.html#496-516" title="Go to source code">_include</a>( <span>string|array <var>$keys</var></span> )</code>

		<div class="description short">
			<p>Include nested objects in query result</p>
		</div>

		<div class="description detailed hidden">
			<p>Include nested objects in query result</p>

<p>Include nested object to return full object instead of
pointer. It accepts an array of keys, or variable number of
keys.</p>

<p>Deep nested fields can be specified as dot separated field,
e.g. <code>$commentQuery-&gt;include('post.author')</code> which will include
author object in comment query result.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$keys</var></dt>
					<dd>string Field keys</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="limit" id="_limit">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_limit">#</a>
		<code><a href="source-class-LeanCloud.Query.html#518-530" title="Go to source code">limit</a>( <span>integer <var>$n</var></span> )</code>

		<div class="description short">
			<p>Limit number of rows to return</p>
		</div>

		<div class="description detailed hidden">
			<p>Limit number of rows to return</p>

<p>The default limit is 100, with a max of 1000 results being returned
at a time.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$n</var></dt>
					<dd>Number of rows</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="skip" id="_skip">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_skip">#</a>
		<code><a href="source-class-LeanCloud.Query.html#532-543" title="Go to source code">skip</a>( <span>integer <var>$n</var></span> )</code>

		<div class="description short">
			<p>Skip number of rows to return in the query</p>
		</div>

		<div class="description detailed hidden">
			<p>Skip number of rows to return in the query</p>

<p>The default is to skip at zero.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$n</var></dt>
					<dd>Number of rows to skip</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="ascend" id="_ascend">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_ascend">#</a>
		<code><a href="source-class-LeanCloud.Query.html#545-556" title="Go to source code">ascend</a>( <span>string <var>$key</var></span> )</code>

		<div class="description short">
			<p>Set ascending order on field</p>
		</div>

		<div class="description detailed hidden">
			<p>Set ascending order on field</p>

<p>Previous order constraints will be discarded.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="descend" id="_descend">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_descend">#</a>
		<code><a href="source-class-LeanCloud.Query.html#558-569" title="Go to source code">descend</a>( <span>string <var>$key</var></span> )</code>

		<div class="description short">
			<p>Set descending order on field</p>
		</div>

		<div class="description detailed hidden">
			<p>Set descending order on field</p>

<p>Previous order constraints will be discarded.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="addAscend" id="_addAscend">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_addAscend">#</a>
		<code><a href="source-class-LeanCloud.Query.html#571-582" title="Go to source code">addAscend</a>( <span>string <var>$key</var></span> )</code>

		<div class="description short">
			<p>Add ascending order on a field</p>
		</div>

		<div class="description detailed hidden">
			<p>Add ascending order on a field</p>

<p>The previous ordering will have higher precedence over this one.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="addDescend" id="_addDescend">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_addDescend">#</a>
		<code><a href="source-class-LeanCloud.Query.html#584-595" title="Go to source code">addDescend</a>( <span>string <var>$key</var></span> )</code>

		<div class="description short">
			<p>Add descending order on a field</p>
		</div>

		<div class="description detailed hidden">
			<p>Add descending order on a field</p>

<p>The previous ordering will have higher precedence over this one.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="orQuery" id="_orQuery">

		<td class="attributes"><code>
			 public static

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_orQuery">#</a>
		<code><a href="source-class-LeanCloud.Query.html#618-632" title="Go to source code">orQuery</a>( <span>... <var>$queries</var></span> )</code>

		<div class="description short">
			<p>Compose OR query from variable number of queries</p>
		</div>

		<div class="description detailed hidden">
			<p>Compose OR query from variable number of queries</p>

<p>It accepts one array of LeanQueries, or variable number of
LeanQueries.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$queries</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="andQuery" id="_andQuery">

		<td class="attributes"><code>
			 public static

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_andQuery">#</a>
		<code><a href="source-class-LeanCloud.Query.html#634-648" title="Go to source code">andQuery</a>( <span>... <var>$queries</var></span> )</code>

		<div class="description short">
			<p>Compose AND query from variable number of queries</p>
		</div>

		<div class="description detailed hidden">
			<p>Compose AND query from variable number of queries</p>

<p>It accepts one array of LeanQueries, or variable number of
LeanQueries.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$queries</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="addOption" id="_addOption">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_addOption">#</a>
		<code><a href="source-class-LeanCloud.Query.html#650-663" title="Go to source code">addOption</a>( <span>string <var>$key</var></span>, <span>mixed <var>$val</var></span> )</code>

		<div class="description short">
			<p>Add extra option in query request</p>
		</div>

		<div class="description detailed hidden">
			<p>Add extra option in query request</p>

<p>Extra options will be appended as request params when
sending query to cloud.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$key</var></dt>
					<dd></dd>
					<dt><var>$val</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Query.html">LeanCloud\Query</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="encode" id="_encode">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_encode">#</a>
		<code><a href="source-class-LeanCloud.Query.html#665-695" title="Go to source code">encode</a>( )</code>

		<div class="description short">
			<p>Encode query to JSON representation</p>
		</div>

		<div class="description detailed hidden">
			<p>Encode query to JSON representation</p>



				<h4>Returns</h4>
				<div class="list">
					array
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="get" id="_get">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Object.html">LeanCloud\Object</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_get">#</a>
		<code><a href="source-class-LeanCloud.Query.html#697-706" title="Go to source code">get</a>( <span>string <var>$objectId</var></span> )</code>

		<div class="description short">
			<p>Query object by id</p>
		</div>

		<div class="description detailed hidden">
			<p>Query object by id</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$objectId</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Object.html">LeanCloud\Object</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="first" id="_first">

		<td class="attributes"><code>
			 public 

			<code><a href="class-LeanCloud.Object.html">LeanCloud\Object</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_first">#</a>
		<code><a href="source-class-LeanCloud.Query.html#708-719" title="Go to source code">first</a>( )</code>

		<div class="description short">
			<p>Find the first object by the query</p>
		</div>

		<div class="description detailed hidden">
			<p>Find the first object by the query</p>



				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-LeanCloud.Object.html">LeanCloud\Object</a></code>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="find" id="_find">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_find">#</a>
		<code><a href="source-class-LeanCloud.Query.html#721-749" title="Go to source code">find</a>( <span>integer <var>$skip</var> = -<span class="php-num">1</span></span>, <span>integer <var>$limit</var> = -<span class="php-num">1</span></span> )</code>

		<div class="description short">
			<p>Find and return objects by the query</p>
		</div>

		<div class="description detailed hidden">
			<p>Find and return objects by the query</p>

<p>The skip or limit provided here will have higher precedence
than the ones specified by query's <code>skip</code> and <code>limit</code> methods.
It does not mutate query.</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$skip</var></dt>
					<dd>(optional) Number of rows to skip</dd>
					<dt><var>$limit</var></dt>
					<dd>(optional) Max number of rows to fetch</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					array
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="count" id="_count">

		<td class="attributes"><code>
			 public 

			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_count">#</a>
		<code><a href="source-class-LeanCloud.Query.html#751-762" title="Go to source code">count</a>( )</code>

		<div class="description short">
			<p>Count number of objects by the query</p>
		</div>

		<div class="description detailed hidden">
			<p>Count number of objects by the query</p>



				<h4>Returns</h4>
				<div class="list">
					integer
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="doCloudQuery" id="_doCloudQuery">

		<td class="attributes"><code>
			 public static

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_doCloudQuery">#</a>
		<code><a href="source-class-LeanCloud.Query.html#764-793" title="Go to source code">doCloudQuery</a>( <span>string <var>$cql</var></span>, <span>array <var>$pvalues</var> = <span class="php-keyword1">array</span>()</span> )</code>

		<div class="description short">
			<p>Doing a CQL query to retrive objects</p>
		</div>

		<div class="description detailed hidden">
			<p>Doing a CQL query to retrive objects</p>

<p>It returns an array that contains:</p>

<ul>
<li>className - Class name of the query</li>
<li>results   - List of objects</li>
<li>count     - Number of objects when it's a count query</li>
</ul>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$cql</var></dt>
					<dd>CQL statement</dd>
					<dt><var>$pvalues</var></dt>
					<dd>Positional values to replace in CQL</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					array
				</div>


				<h4>Link</h4>
				<div class="list">
						<a href="https://leancloud.cn/docs/cql_guide.html">https://leancloud.cn/docs/cql_guide.html</a><br>
				</div>


		</div>
		</div></td>
	</tr>
	</table>


















</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
